home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / CMPRComponent.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.5 KB  |  95 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMPRComponent.p
  3.  
  4.      Contains:    ColorSync ProfileResponder Component API
  5.  
  6.      Version:    Technology:    ColorSync 1.0
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1993-1998 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CMPRComponent;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CMPRCOMPONENT__}
  28. {$SETC __CMPRCOMPONENT__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CMPRComponentIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __QUICKDRAW__}
  38. {$I Quickdraw.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __COMPONENTS__}
  41. {$I Components.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __CMAPPLICATION__}
  44. {$I CMApplication.p}
  45. {$ENDC}
  46.  
  47.  
  48. {$PUSH}
  49. {$ALIGN MAC68K}
  50. {$LibExport+}
  51.  
  52.  
  53. CONST
  54.     CMPRInterfaceVersion        = 0;
  55.  
  56. { Component function selectors }
  57.     kCMPRGetProfile                = 0;
  58.     kCMPRSetProfile                = 1;
  59.     kCMPRSetProfileDescription    = 2;
  60.     kCMPRGetIndexedProfile        = 3;
  61.     kCMPRDeleteDeviceProfile    = 4;
  62.  
  63.  
  64. FUNCTION CMGetProfile(pr: ComponentInstance; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
  65.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  66.     INLINE $2F3C, $0008, $0000, $7000, $A82A;
  67.     {$ENDC}
  68. FUNCTION CMSetProfile(pr: ComponentInstance; newProfile: CMProfileHandle): CMError;
  69.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  70.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  71.     {$ENDC}
  72. FUNCTION CMSetProfileDescription(pr: ComponentInstance; DeviceData: LONGINT; hProfile: CMProfileHandle): CMError;
  73.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  74.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  75.     {$ENDC}
  76. FUNCTION CMGetIndexedProfile(pr: ComponentInstance; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
  77.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  78.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  79.     {$ENDC}
  80. FUNCTION CMDeleteDeviceProfile(pr: ComponentInstance; deleteMe: CMProfileHandle): CMError;
  81.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  82.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  83.     {$ENDC}
  84.  
  85. {$ALIGN RESET}
  86. {$POP}
  87.  
  88. {$SETC UsingIncludes := CMPRComponentIncludes}
  89.  
  90. {$ENDC} {__CMPRCOMPONENT__}
  91.  
  92. {$IFC NOT UsingIncludes}
  93.  END.
  94. {$ENDC}
  95.